import { getAction, deleteAction, putAction, postAction, httpAction, getActionForBase } from '@/api/manage'

//选课模式列表
const patternList = params => postAction('/edu-schedule/classChoise/veJwXkms/list', params)
//选课时间限制
const timeBox = params => postAction('/edu-schedule/classChoise/veJwXksj/list', params)
//选择学期
const semesterList = params => getActionForBase('/common/veCommon/querySemesterList', params)
// 新增选课
const addPattern = params => postAction('/edu-schedule/classChoise/veJwXkms/add', params)
// 修改选课
const editPattern = params => postAction('/edu-schedule/classChoise/veJwXkms/edit', params)
// 批量删除选课
const deletePattern = params => postAction('/edu-schedule/classChoise/veJwXkms/deleteByStatus', params)
// 批量销毁选课
const destoryPattern = params => postAction('/edu-schedule/classChoise/veJwXkms/deleteBatch', params)
export { patternList, timeBox, semesterList, addPattern, editPattern, deletePattern, destoryPattern }
